/*除去注册与登录外其他界面的总体布局*/
body {
    font-family: "Open Sans", sans-serif;
    color: #444;
}

/*头部导航栏*/
.header {
    height: 70px;
    padding: 10px 0;
    margin-top: 10px;
    margin-right: 20px;
    background: #fff;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-item a {
    text-decoration: none;
    color: #5c768d;
}

/*介绍相关信息*/
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 0;
    color: #5c768d;
}

.section-title p {
    margin-bottom: 0;
}

/*index中四个方框*/
.dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: center;
}

.card h2 {
    margin-top: 4vh;
    font-size: 1.5em;
    color: dimgray;
}

.card a {
    text-decoration: none;
}

.card i {
    font-size: 100px;
    color: gray;
}

/*对图形的解释*/
.about {
    padding-bottom: 30px;
}

.about .section-title p {
    text-align: center;
    font-style: italic;
    color: #666;
}

/*图表*/
.counts {
    padding-bottom: 30px;
}

/* 文字容器样式 */
.section-title {
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

/*装内容*/
.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-panel {
    margin: 10px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0e0;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    box-shadow: 2px 4px 4px 6px rgba(0.1, 0.1, 0.1, 0.1);
}

.word-cloud {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.word-cloud:hover {
    transform: scale(1.05);
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    margin: 10px;
    background-color: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.right-panel h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.right-panel input {
    margin-bottom: 10px;
    height: 5vh;
    border-width: 1.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.right-panel form input {
    margin-bottom: 10px;
    height: 5vh;
    border-width: 1.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.right-panel p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.right-panel button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.right-panel form button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.right-panel button:hover {
    background-color: #0056b3;
}

.right-panel button a {
    text-decoration: none;
    color: white;
}

.chart-container {
    margin: 0 auto; /* 水平居中 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-form {
    margin-bottom: 20px;
}

/* 搜索输入框样式 */
.search-input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* 搜索按钮样式 */
.search-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.search-button:hover {
    background-color: #0056b3;
}

/*底部*/
.footer {
    background-color: #c8cbcf;
    font-size: 0.9vw;
    color: white;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    bottom: 0;
    flex-shrink: 0;
}
